package com.heima.stringbuffer;

public class Test2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		StringBuffer sb = new StringBuffer("www.baidu.com");
		/*System.out.println(sb.append("www.baidu.com"));
		System.out.println(sb.append(true));
		char[] arr = {11,22};
		System.out.println(sb.append(arr));
		System.out.println(sb.append("10.11"));*/
		//System.out.println(sb.charAt(4));
		System.out.println(sb.insert(3, true)); //wwwtrue.baidu.com
		System.out.println(sb.insert(3, "china")); //wwwchinatrue.baidu.com
	}
}
